package com.bjsxt.messageConsumer.dao.impl;

import com.bjsxt.livegoods.pojo.Order;
import com.bjsxt.messageConsumer.dao.OrderDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

/**
 * @ClassName : OrderDaoImpl
 * @Description :
 * @Author : ZWZ
 * @Date: 2021/8/27 15:58
 */
@Repository
public class OrderDaoImpl implements OrderDao {

    @Autowired
    private MongoTemplate mongoTemplate;

    @Override
    public void save(Order order) {
        mongoTemplate.save(order);
    }
    
}
